using System;
using System.Runtime;
using Me.Prettyprint.Cassandra.Service;

namespace Me.Prettyprint.Cassandra.Connection.Factory
{
	public class HClientFactoryProvider
	{
		public static HClientFactory createFactory(CassandraHostConfigurator chc)
		{
			try
			{
                return (HClientFactory)Activator.CreateInstance(chc.ClientFactoryType);
			}
			catch (System.Exception e)
			{
				throw e;
			}
		}
	}
}